package com.zzl.finance.data.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author gull
 * @date 2021-11-09 20:04:58
 */
@Data
@ApidocModel
@SuppressWarnings("javadoc")
public class EnterpriseListDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApidocModelProperty(description = "id")
    private Integer id;

    @ApidocModelProperty(description = "企业名称")
    private String enterpriseName;

    @ApidocModelProperty(description = "统一社会信用代码")
    private String socialCreditCode;

    @ApidocModelProperty(description = "注册地址 企业地址-省市")
    private String businessAddressCity;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApidocModelProperty(description = "营业执照有效期", validate = "yyyy-MM-dd")
    private Date businessLicenseExpireTime;

    @ApidocModelProperty(description = "是否长期有效，1 长期有效，0有效期内有效")
    private Boolean businessLicenseLongTime;

    @ApidocModelProperty(description = "营业执照")
    private String businessLicense;

    @ApidocModelProperty(description = "法人证件号码")
    private String legalIdentification;

    @ApidocModelProperty(description = "法人姓名")
    private String legalUserName;

    @ApidocModelProperty(description = "法人手机号")
    private String legalPhone;

    @ApidocModelProperty(description = "授权函")
    private String authorizationLetter;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @ApidocModelProperty(description = "证件有效期", validate = "yyyy-MM-dd")
    private Date legalCertificateExpireTime;

    @ApidocModelProperty(description = "是否长期有效，1 长期有效，0有效期内有效")
    private Boolean legalIdentificationLongTime;

    @ApidocModelProperty(description = "身份证正面")
    private String frontIdentityCard;

    @ApidocModelProperty(description = "身份证反面")
    private String backIdentityCard;

    @ApidocModelProperty(description = "企业类型")
    private String enterpriseType;
    @ApidocModelProperty(description = "企业地址")
    private String businessAddress;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @ApidocModelProperty(description = "成立日期", validate = "yyyy-MM-dd")
    private Date incorporationTime;
    @ApidocModelProperty(description = "注册资本，如100万元")
    private String registeredCapital;
    @ApidocModelProperty(description = "企业经营范围")
    private String businessScope;


    @ApidocModelProperty(description = "授权函相关附件集合")
    private List<FileIdNameDto> fileList;

}
